<?php
/*
	$Id: _functions.php 9 2007-09-21 19:01:10Z davoro $
	
	Author: davoro@gmail.com
*/

function getItemData($base_url, $id, $realm = false, $name = false) {
	$url = $base_url . "/item-tooltip.xml?i=" . urlencode(stripslashes($id));
	if($realm && $name) {
		$url .= "&r=" . urlencode(stripslashes($realm)) . "&n=" . urlencode(stripslashes($name));
	}
	return getArmoryDataXML($url);
}

function getTalentData($base_url, $realm, $name) {
	$url = $base_url . "/character-talents.xml?r=" . urlencode(stripslashes($realm)) . "&n=" . urlencode(stripslashes($name));
	return getArmoryDataXML($url);
}

?>
